package o;

import android.content.Context;
import com.huawei.appgallery.forum.cards.bean.ForumHorizonListCardBean;
import com.huawei.appgallery.forum.cards.node.ForumHorizonListNode;
import com.huawei.appgallery.forum.forum.activity.IForumActivityProtocol;
import com.huawei.appgallery.forum.forum.api.IForumLetterActivityProtocol;
import com.huawei.appgallery.forum.forum.bean.ForumBannerCardBean;
import com.huawei.appgallery.forum.forum.bean.ForumHorizonCardBean;
import com.huawei.appgallery.forum.forum.bean.ForumListCardBeanV2;
import com.huawei.appgallery.forum.forum.bean.ForumSectionInfoCardBean;
import com.huawei.appgallery.forum.forum.node.ForumBannerNode;
import com.huawei.appgallery.forum.forum.node.ForumFollowListNode;
import com.huawei.appgallery.forum.forum.node.ForumFollowListNodeV2;
import com.huawei.appgallery.forum.forum.node.ForumHorizonNode;
import com.huawei.appgallery.forum.forum.node.ForumListNode;
import com.huawei.appgallery.forum.forum.node.ForumListNodeV2;
import com.huawei.appgallery.forum.forum.node.ForumSectionInfoNode;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseCardBean;

class buq {
    private static buq ˊ = new buq();

    static class a implements o.brg.e {
        private a() {
        }

        public void ˎ(Context context, BaseCardBean baseCardBean) {
            fjb ˎ = fho.ˏ().ˋ("Forum").ˎ("forum.following");
            IForumActivityProtocol iForumActivityProtocol = (IForumActivityProtocol) ˎ.ˊ();
            iForumActivityProtocol.setUri(baseCardBean.ॱॱ());
            iForumActivityProtocol.setTitle(baseCardBean.v_());
            iForumActivityProtocol.setDomainId(bqy.ˋ().ˎ());
            fiu.ˊ().ˏ(context, ˎ);
        }
    }

    static class b implements o.brg.e {
        private b() {
        }

        public void ˎ(Context context, BaseCardBean baseCardBean) {
            fjb ˎ = fho.ˏ().ˋ("Forum").ˎ("forum.detail");
            IForumActivityProtocol iForumActivityProtocol = (IForumActivityProtocol) ˎ.ˊ();
            iForumActivityProtocol.setUri(baseCardBean.ॱॱ());
            iForumActivityProtocol.setTitle(baseCardBean.v_());
            iForumActivityProtocol.setDomainId(bqy.ˋ().ˎ());
            fiu.ˊ().ˏ(context, ˎ);
        }
    }

    static class c implements o.brg.e {
        private c() {
        }

        public void ˎ(Context context, BaseCardBean baseCardBean) {
            fjb ˎ = fho.ˏ().ˋ("Forum").ˎ("ForumRecommendActivity");
            IForumActivityProtocol iForumActivityProtocol = (IForumActivityProtocol) ˎ.ˊ();
            iForumActivityProtocol.setUri(baseCardBean.ॱॱ());
            iForumActivityProtocol.setDomainId(bqy.ˋ().ˎ());
            fiu.ˊ().ˏ(context, ˎ);
        }
    }

    static class e implements o.brg.e {
        private e() {
        }

        public void ˎ(Context context, BaseCardBean baseCardBean) {
            fjb ˎ = fho.ˏ().ˋ("Forum").ˎ("forum.letters");
            IForumLetterActivityProtocol iForumLetterActivityProtocol = (IForumLetterActivityProtocol) ˎ.ˊ();
            iForumLetterActivityProtocol.setUri(baseCardBean.ॱॱ());
            iForumLetterActivityProtocol.setTitle(baseCardBean.v_());
            iForumLetterActivityProtocol.setDomainId(bqy.ˋ().ˎ());
            fiu.ˊ().ˏ(context, ˎ);
        }
    }

    private buq() {
    }

    static buq ˎ() {
        return ˊ;
    }

    void ˏ() {
        bqx.ˊ("ForumModuleInit", "init Forum");
        brf o_brf = (brf) fho.ˏ().ˋ("Base").ॱ(brf.class);
        o_brf.ॱ("forumbannercard", ForumBannerNode.class, ForumBannerCardBean.class);
        o_brf.ॱ("forumhorizoncard", ForumHorizonNode.class, ForumHorizonCardBean.class);
        o_brf.ॱ("forumlistcard", ForumListNode.class, buv.class);
        o_brf.ॱ("forumlistcardv2", ForumListNodeV2.class, ForumListCardBeanV2.class);
        o_brf.ॱ("forumfollowlistcard", ForumFollowListNode.class, buv.class);
        o_brf.ॱ("forumsectioninfocard", ForumSectionInfoNode.class, ForumSectionInfoCardBean.class);
        o_brf.ॱ("forumfollowlistcardv2", ForumFollowListNodeV2.class, buu.class);
        o_brf.ॱ("forumhorizonlistcard", ForumHorizonListNode.class, ForumHorizonListCardBean.class);
        brg o_brg = (brg) fho.ˏ().ˋ("Base").ॱ(brg.class);
        o_brg.ˊ("group_forums_letters", new e());
        o_brg.ˊ("group_forums", new b());
        o_brg.ˊ("following_forums", new a());
        o_brg.ˊ("recommend", new c());
        chh.ˊ("forum", bux.class);
    }
}
